package cn.foolishbird.crow.core;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

import java.io.Serializable;

/**
 * 反射重写toString方法
 *
 * @author foolish-bird
 */
public abstract class SObject implements Serializable {

    private static final long serialVersionUID = -2998968144278213007L;

    /**
     * 重写toString
     *
     * @return String
     */
    @Override
    public String toString() {
        return ReflectionToStringBuilder.toString(this);
    }

}
